Skip to content

解绑 - UnBind

函数简介

解绑当前设备上的授权信息。调用后由服务端按当前设备上下文执行解绑逻辑。

返回数据格式:

json
{
  "Code": 1,
  "ServerTime": "2026-04-24 10:00:00.000",
  "Message": "",
  "LicenceKeys": ["xxxx-xxxx-xxxx"]
}
字段名说明
Code结果状态码。
ServerTime服务器时间。
Message提示信息。
LicenceKeys本次返回的激活码列表(可能为空)。

接口名称

UnBind

DLL调用

long UnBind(string userCode, string softCode, string softVersion, string dealerCode);

参数说明

参数名类型说明
userCode字符串用户码。
softCode字符串软件码。
softVersion字符串软件版本。
dealerCode字符串经销商码。

示例

SDK 调用

cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
int ret = ola.UnBind("value", "value", "value", "value");
csharp
using OLAPlug;

var ola = new OLAPlugServer();
int ret = ola.UnBind("value", "value", "value", "value");
python
from OLAPlugServer import OLAPlugServer

ola = OLAPlugServer()
ret = ola.UnBind("value", "value", "value", "value")
java
import com.olaplug.OLAPlugServer;

OLAPlugServer ola = new OLAPlugServer();
int ret = ola.UnBind("value", "value", "value", "value");
cpp
var ola = com("OlaPlug.OlaSoft")
var ret = ola.UnBind("value", "value", "value", "value")
vbscript
Set ola = CreateObject("OlaPlug.OlaSoft")
ret = ola.UnBind("value", "value", "value", "value")
text
.局部变量 ola, OLAPlug
ola.创建 ()
ret = ola.UnBind(“value”, “value”, “value”, “value”)
aardio
import OLAPlugServer;
var ola = OLAPlugServer();
var ret = ola.UnBind("value", "value", "value", "value");
text
变量 ola <类型 = OLAPlugServer>
ola = 新建 OLAPlugServer
整数 ret = ola.UnBind("value", "value", "value", "value")
cpp
#include "OLAPlugServer.h"

OLAPlugServer ola;
int32_t ret = ola.UnBind("value", "value", "value", "value");

原生 DLL 调用

cpp
UnBind(instance, "value", "value", "value", "value");
csharp
using System.Runtime.InteropServices;
using System.Text;

[DllImport("OLAPlug_x64.dll", CallingConvention = CallingConvention.StdCall)]
static extern long UnBind(string userCode, string softCode, string softVersion, string dealerCode);

UnBind(instance, "value", "value", "value", "value");
python
from ctypes import CDLL, c_int, c_int64, create_string_buffer

ola = CDLL("OLAPlug_x64.dll")
ola.CreateCOLAPlugInterFace.restype = c_int64
ola.UnBind(instance, "value", "value", "value", "value")

返回值

成功返回 JSON 字符串格式的解绑结果;失败返回 0。

注意事项

  • 返回的字符串指针需要调用 FreeStringPtr 接口释放内存。
  • 返回的激活码可以用于二次授权